Ext.define('Holo.view.app.WindowsNewApp', {
    extend: 'Ext.window.Window',
    alias : 'widget.windowsnewapp',
    height: 171,
    width: 332,
    layout: {
        type: 'fit'
    },
    modal:true,
    closable: true,
    resizable:false,
    title: Label.get('LAB110'),

    initComponent: function() {
        var me = this;

        Ext.applyIf(me, {
            items: [
                {
                    xtype: 'form',
                    id:'WindowsNewAppForm', //id needed the controller get lost with other form otherwize
                    layout: {
                        align: 'center',
                        pack: 'center',
                        type: 'vbox'
                    },
                    bodyPadding: 10,
                    frameHeader: false,
                    items: [
                        {
                            xtype: 'textfield',
                            name: 'name',
                            allowBlank: false,
                            blankText:Error.get('ERR005'),
                            maxLength:60,
                            maxLengthText:Error.get('ERR003'),
                            minLength:3,
                            minLengthText:Error.get('ERR002'),
                            fieldLabel: Label.get('LAB051')
                        },{
                        xtype: 'combobox',
                        fieldLabel: Label.get('LAB902'),
                        name :'codelang',
                        store: GlobalData.storeChoiceLanguage,
                        queryMode: 'local',
                        allowBlank: false,
                        blankText:Error.get('ERR005'),
                        editable : false,
                        displayField: 'labelLang',
                        valueField: 'codeLang'
                    },
                        
                    ],
                   
                    buttons :[{
                                text: Label.get('LAB901'),
                                action:'createapp',
                                formBind: true, //only enabled once the form is valid
                                disabled: true
                            }]
                
                     
                    
                }
            ]
        });

        me.callParent(arguments);
    }

});